SQLiteCipher

class SQLiteCipher(url: String, password: String, options: ERROR CLASS: Symbol not found for ConnectionPool.Options = ConnectionPool.Options(), val encoders: ERROR CLASS: Symbol not found for ValueEncoderRegistry = ValueEncoderRegistry()) : ISQLiteCipher(source)

Encrypted SQLite (SQLCipher) driver for the JVM and Android, backed by the Rust sqlx core via JNI. The same Rust engine powers the Kotlin/Native targets through FFI, so behavior is uniform.

Each operation runs the blocking JNI call on Dispatchers.IO. The url must already be a resolved sqlite: URL — the sqliteCipher(...) factory normalizes it per platform (Android resolves relative filenames against the app's private database directory).

Parameters

url

The (resolved) SQLite connection URL.

password

The SQLCipher passphrase, applied as PRAGMA key. Pass an empty string for an unencrypted database.

options

Connection pool configuration.

encoders

Optional registry of value encoders used when binding query parameters.

Constructors

Link copied to clipboard
constructor(url: String, password: String, options: ERROR CLASS: Symbol not found for ConnectionPool.Options = ConnectionPool.Options(), encoders: ERROR CLASS: Symbol not found for ValueEncoderRegistry = ValueEncoderRegistry())

Types

Link copied to clipboard
class SqlxConnection(rt: Long, cn: Long, val encoders: ERROR CLASS: Symbol not found for ValueEncoderRegistry) : <ERROR CLASS> ERROR CLASS: Symbol not found for Connection
Link copied to clipboard
class SqlxTransaction(rt: Long, tx: Long, val encoders: ERROR CLASS: Symbol not found for ValueEncoderRegistry) : <ERROR CLASS> ERROR CLASS: Symbol not found for Transaction

Properties

Link copied to clipboard
open override val encoders: ERROR CLASS: Symbol not found for ValueEncoderRegistry

Functions

Link copied to clipboard
open suspend override fun acquire(): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for Connection>
Link copied to clipboard
open suspend override fun begin(): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for Transaction>
Link copied to clipboard
open suspend override fun close(): ERROR CLASS: Symbol not found for Result<kotlin/Unit>
Link copied to clipboard
open suspend override fun execute(statement: ERROR CLASS: Symbol not found for Statement): ERROR CLASS: Symbol not found for Result<kotlin/Long>
open suspend override fun execute(sql: String): ERROR CLASS: Symbol not found for Result<kotlin/Long>
Link copied to clipboard
open suspend override fun executeWithResult(statement: ERROR CLASS: Symbol not found for Statement): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for ExecuteResult>
open suspend override fun executeWithResult(sql: String): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for ExecuteResult>
Link copied to clipboard
open override fun fetch(statement: ERROR CLASS: Symbol not found for Statement, fetchSize: Int): ERROR CLASS: Symbol not found for Flow<ERROR CLASS: Symbol not found for ResultSet.Row>
open override fun fetch(sql: String, fetchSize: Int): ERROR CLASS: Symbol not found for Flow<ERROR CLASS: Symbol not found for ResultSet.Row>
Link copied to clipboard
open suspend override fun fetchAll(statement: ERROR CLASS: Symbol not found for Statement): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for ResultSet>
open suspend override fun fetchAll(sql: String): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for ResultSet>
Link copied to clipboard
open suspend override fun migrate(supplier: () -> List<ERROR CLASS: Symbol not found for MigrationFile>, table: String, schema: String?, createSchema: Boolean, afterStatementExecution: suspend (ERROR CLASS: Symbol not found for Statement, ERROR CLASS: Symbol not found for Duration) -> Unit, afterFileMigration: suspend (ERROR CLASS: Symbol not found for Migration, ERROR CLASS: Symbol not found for Duration) -> Unit): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for Migrator.Results>
open suspend override fun migrate(path: String, table: String, schema: String?, createSchema: Boolean, afterStatementExecution: suspend (ERROR CLASS: Symbol not found for Statement, ERROR CLASS: Symbol not found for Duration) -> Unit, afterFileMigration: suspend (ERROR CLASS: Symbol not found for Migration, ERROR CLASS: Symbol not found for Duration) -> Unit): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for Migrator.Results>
open suspend override fun migrate(files: List<ERROR CLASS: Symbol not found for MigrationFile>, table: String, schema: String?, createSchema: Boolean, afterStatementExecution: suspend (ERROR CLASS: Symbol not found for Statement, ERROR CLASS: Symbol not found for Duration) -> Unit, afterFileMigration: suspend (ERROR CLASS: Symbol not found for Migration, ERROR CLASS: Symbol not found for Duration) -> Unit): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for Migrator.Results>
Link copied to clipboard
open override fun poolIdleSize(): Int
Link copied to clipboard
open override fun poolSize(): Int